package model

import (
	"tdy-backend/app/core/model"
)

type Spot struct {
	model.BaseModel
	MemberId    uint      `gorm:"column:member_id;type:bigint(20);not null;comment:会员id"`
	SceneId     uint      `gorm:"column:scene_id;type:bigint(20);not null;comment:场景id"`
	Title       string    `gorm:"column:title;type:varchar(100);not null;comment:热点标题"`
	IsShowTitle int       `gorm:"column:is_show_title;type:tinyint(4);not null;default:2;comment:是否显示标题 1是 2否"`
	OpenType    int       `gorm:"column:open_type;type:tinyint(4);not null;comment:1 场景切换 2 图片 3音频 4视频 5外链"`
	Type        int       `gorm:"column:type;type:tinyint(4);not null;comment:1静态图标  2动态图标"`
	IconImage   string    `gorm:"column:icon_image;type:varchar(200);comment:图标地址"`
	ToSceneId   uint      `gorm:"column:to_scene_id;type:bigint(20);comment:场景切换id，字段冗余，openType=1的情况"`
	ToUrl       string    `gorm:"column:to_url;type:varchar(200);comment:openType=2-5的情况"`
	Ath         float32   `gorm:"column:ath;type:decimal(10,2);not null;comment:热点位置信息"`
	Atv         float32   `gorm:"column:atv;type:decimal(10,2);not null;comment:热点位置信息"`
	Info        *SpotInfo `gorm:"column:info;type:json;comment:热点信息"`
}
type SpotInfo struct {
	Test string
}
